/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.gt.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.Area;

/**
 * 护林员岗位扶贫人信息Entity
 * @author zad
 * @version 2018-03-26
 */
public class GtPostPeople extends DataEntity<GtPostPeople> {
	
	private static final long serialVersionUID = 1L;
	// private GtPost post;		// 所属扶贫岗
	private Area area;		// 地区
	private String name;		// 姓名
	private String isHolder;		// 是否户主
	private String idcard;		// 身份证号
	private String address;		// 家庭住址
	private Double money;		// 帮扶金额
	private Date moneyTime;		// 帮扶时间
	
	public GtPostPeople() {
		super();
	}

	public GtPostPeople(String id){
		super(id);
	}

	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}

	@Length(min=1, max=64, message="姓名长度必须介于 1 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=2, message="是否户主长度必须介于 0 和 2 之间")
	public String getIsHolder() {
		return isHolder;
	}

	public void setIsHolder(String isHolder) {
		this.isHolder = isHolder;
	}
	
	@Length(min=0, max=20, message="身份证号长度必须介于 0 和 20 之间")
	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}
	
	@Length(min=0, max=256, message="家庭住址长度必须介于 0 和 256 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getMoneyTime() {
		return moneyTime;
	}

	public void setMoneyTime(Date moneyTime) {
		this.moneyTime = moneyTime;
	}
	
}